<template>
  <div>
    {{qq}}--------{{$attrs}} ---{{age}}
    <button @click='qqq'>btn</button>
  </div>
</template>
<script>
// @ is an alias to /src
export default {
  props: ["qq"],
  inject: ["age"],
  data() {
    return {};
  },
  methods: {
    qqq() {
      console.log(this.$parent);
    },
  },
};
</script>
<style lang="less">
</style>